import { get, post, put, deletes } from '../http'
// 获取用户列表
export let userLists = (url, data) => {
    return get(url, data).then(res => {
        return res
    })
}

// 添加用户
export let addUsers = (url, data) => {
    return post(url, data).then(res => {
        return res
    })
}

// 修改用户
export let upUsers = (url, data) => {
    return put(url, data).then(res => {
        return res
    })
}

// 编辑用户
export let editUsers = (url, params) => {
    return put(url, params).then(res => {
        return res
    })
}

// 搜索用户
export let getUser = (url, data) => {
    return get(url, data).then(res => {
        return res
    })
}

// 删除用户
export let deletee = (url, data) => {
    return deletes(url, data).then(res => {
        return res
    })
}